#ifndef _EXTENDED_ARRAY_
#define _EXTENDED_ARRAY_

class Array {
public :
    explicit Array(size_t size = 10);
    Array(const Array& arr);
    ~Array();
    Array& operator=(const Array& arr);
    int get(size_t index);
    void set(size_t index, int value);
    void pushBack(int value);
    size_t size();
private :
    size_t _size;
    size_t _capacity;
    int *data;
    void encreaseCapacity();
    void check(size_t index);
};

#endif